from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'groups', views.GroupViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('me/', views.UserViewSet.as_view({'get': 'me'}), name='user-me'),
    path('profile/', views.UserProfileView.as_view(), name='user-profile'),
]
